From a3fb2cebf9a865c0bd466f72215191f61648a4f3 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 24 Jan 2007 10:18:44 +0000 Subject: [PATCH] libxenguest: Fix xc_resume() build for non-x86. Signed-off-by: Keir Fraser --- tools/libxc/xc_resume.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/libxc/xc_resume.c b/tools/libxc/xc_resume.c index 519bf1cadb..214d520800 100644 --- a/tools/libxc/xc_resume.c +++ b/tools/libxc/xc_resume.c @@ -43,13 +43,9 @@ static int xc_domain_resume_cooperative(int xc_handle, uint32_t domid) static int xc_domain_resume_any(int xc_handle, uint32_t domid) { DECLARE_DOMCTL; + xc_dominfo_t info; int i, rc = -1; - - /* - * (x86 only) Rewrite store_mfn and console_mfn back to MFN (from PFN). - */ #if defined(__i386__) || defined(__x86_64__) - xc_dominfo_t info; unsigned long mfn, max_pfn = 0; vcpu_guest_context_t ctxt; start_info_t *start_info; @@ -57,6 +53,7 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid) xen_pfn_t *p2m_frame_list_list = NULL; xen_pfn_t *p2m_frame_list = NULL; xen_pfn_t *p2m = NULL; +#endif if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1 ) { @@ -64,6 +61,10 @@ static int xc_domain_resume_any(int xc_handle, uint32_t domid) goto out; } + /* + * (x86 only) Rewrite store_mfn and console_mfn back to MFN (from PFN). + */ +#if defined(__i386__) || defined(__x86_64__) /* Map the shared info frame */ shinfo = xc_map_foreign_range(xc_handle, domid, PAGE_SIZE, PROT_READ, info.shared_info_frame); -- 2.30.2